<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport( 'joomla.application.componenet.model' );

class ModelBPNewsAll extends JModel 
{
	var $_news = null;
	function getList()
	{
		if( !$this->_news )
		{
			$query = "SELECT * FROM #__bpnews WHERE published = '1'";
			$this->_news = $this->getList( $query, 0 , 0 );
		}
		
		return $this->_news;
	}
}
?>